<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>主页</h1>
    <button>产品页</button>
    <button>用户页</button>
    <button>主页</button>
    <script>
        var btns = document.querySelectorAll("button");
        btns[0].onclick = function(){
            window.location.href = "./product.html"
        }
        btns[1].onclick = function(){
            window.location.href = "./users.html"
        }
        btns[2].onclick = function(){
            window.location.href = "./home.html"
        }


    </script>
</body>
</html>